Optimal. Leaf size=392 \[ -\frac{\sqrt [4]{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{-\sqrt{b^2-4 a c}-b}}-\frac{\sqrt [4]{c} \left (\frac{b d-2 a e}{\sqrt{b^2-4 a c}}+d\right ) \tan ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{\sqrt{b^2-4 a c}-b}}+\frac{\sqrt [4]{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{-\sqrt{b^2-4 a c}-b}}+\frac{\sqrt [4]{c} \left (\frac{b d-2 a e}{\sqrt{b^2-4 a c}}+d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{\sqrt{b^2-4 a c}-b}}-\frac{d}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.682775, antiderivative size = 392, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {1504, 1510, 298, 205, 208} \[ -\frac{\sqrt [4]{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{-\sqrt{b^2-4 a c}-b}}-\frac{\sqrt [4]{c} \left (\frac{b d-2 a e}{\sqrt{b^2-4 a c}}+d\right ) \tan ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{\sqrt{b^2-4 a c}-b}}+\frac{\sqrt [4]{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{-\sqrt{b^2-4 a c}-b}}+\frac{\sqrt [4]{c} \left (\frac{b d-2 a e}{\sqrt{b^2-4 a c}}+d\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{\sqrt{b^2-4 a c}-b}}\right )}{2\ 2^{3/4} a \sqrt [4]{\sqrt{b^2-4 a c}-b}}-\frac{d}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1504
Rule 1510
Rule 298
Rule 205
Rule 208
Rubi steps
\begin{align*} \int \frac{d+e x^4}{x^2 \left (a+b x^4+c x^8\right )} \, dx &=-\frac{d}{a x}-\frac{\int \frac{x^2 \left (b d-a e+c d x^4\right )}{a+b x^4+c x^8} \, dx}{a}\\ &=-\frac{d}{a x}-\frac{\left (c \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{x^2}{\frac{b}{2}+\frac{1}{2} \sqrt{b^2-4 a c}+c x^4} \, dx}{2 a}-\frac{\left (c \left (d+\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{x^2}{\frac{b}{2}-\frac{1}{2} \sqrt{b^2-4 a c}+c x^4} \, dx}{2 a}\\ &=-\frac{d}{a x}+\frac{\left (\sqrt{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\sqrt{-b-\sqrt{b^2-4 a c}}-\sqrt{2} \sqrt{c} x^2} \, dx}{2 \sqrt{2} a}-\frac{\left (\sqrt{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\sqrt{-b-\sqrt{b^2-4 a c}}+\sqrt{2} \sqrt{c} x^2} \, dx}{2 \sqrt{2} a}+\frac{\left (\sqrt{c} \left (d+\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\sqrt{-b+\sqrt{b^2-4 a c}}-\sqrt{2} \sqrt{c} x^2} \, dx}{2 \sqrt{2} a}-\frac{\left (\sqrt{c} \left (d+\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\sqrt{-b+\sqrt{b^2-4 a c}}+\sqrt{2} \sqrt{c} x^2} \, dx}{2 \sqrt{2} a}\\ &=-\frac{d}{a x}-\frac{\sqrt [4]{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-b-\sqrt{b^2-4 a c}}}\right )}{2\ 2^{3/4} a \sqrt [4]{-b-\sqrt{b^2-4 a c}}}-\frac{\sqrt [4]{c} \left (d+\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-b+\sqrt{b^2-4 a c}}}\right )}{2\ 2^{3/4} a \sqrt [4]{-b+\sqrt{b^2-4 a c}}}+\frac{\sqrt [4]{c} \left (d-\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-b-\sqrt{b^2-4 a c}}}\right )}{2\ 2^{3/4} a \sqrt [4]{-b-\sqrt{b^2-4 a c}}}+\frac{\sqrt [4]{c} \left (d+\frac{b d-2 a e}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{2} \sqrt [4]{c} x}{\sqrt [4]{-b+\sqrt{b^2-4 a c}}}\right )}{2\ 2^{3/4} a \sqrt [4]{-b+\sqrt{b^2-4 a c}}}\\ \end{align*}
Mathematica [C] time = 0.0653445, size = 85, normalized size = 0.22 \[ -\frac{\text{RootSum}\left [\text{$\#$1}^4 b+\text{$\#$1}^8 c+a\& ,\frac{\text{$\#$1}^4 c d \log (x-\text{$\#$1})-a e \log (x-\text{$\#$1})+b d \log (x-\text{$\#$1})}{2 \text{$\#$1}^5 c+\text{$\#$1} b}\& \right ]}{4 a}-\frac{d}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.006, size = 72, normalized size = 0.2 \begin{align*} -{\frac{1}{4\,a}\sum _{{\it \_R}={\it RootOf} \left ({{\it \_Z}}^{8}c+{{\it \_Z}}^{4}b+a \right ) }{\frac{ \left ( cd{{\it \_R}}^{6}+ \left ( -ae+bd \right ){{\it \_R}}^{2} \right ) \ln \left ( x-{\it \_R} \right ) }{2\,{{\it \_R}}^{7}c+{{\it \_R}}^{3}b}}}-{\frac{d}{ax}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]